package com.dhsc.local.dao.impl.xtqxgl;

import com.dhsc.domain.ywzx.xtqxgl.TsglVo;
import com.dhsc.local.dao.xtqxgl.ITsglDao;
import org.mybatis.spring.SqlSessionTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @ClassName: TsglDaoImpl
 * @Description: 用户特殊管理
 * @date: 2023/11/6 14:38
 * @author: gx
 */
@Repository("tsgldao")
public class TsglDaoImpl implements ITsglDao {

    @Autowired
    private SqlSessionTemplate localSqlSessionTemplate;

    @Override
    public List<TsglVo> queryTsgl(TsglVo tsglVo) {
        return localSqlSessionTemplate.selectList("TsglMapper.queryTsgl",tsglVo);
    }

    @Override
    public List<TsglVo> queryTsryxm(TsglVo tsglVo) {
        return localSqlSessionTemplate.selectList("TsglMapper.queryTsryxm",tsglVo);
    }

    @Override
    public int insertTsgl(TsglVo tsglVo) {
        return localSqlSessionTemplate.insert("TsglMapper.insertTsgl",tsglVo);
    }

    @Override
    public int updateTsgl(TsglVo tsglVo) {
        return localSqlSessionTemplate.update("TsglMapper.updateTsgl",tsglVo);
    }
}
